<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id="app">
        <!-- 子组件里面定义一个属性名，去接父组件传过来的数据，再后面通过这个属性名去试用传过来的数据 -->
        <cpn :aprops="adata"></cpn>
    </div>
    <template id="temp1">
        <div>{{aprops}}</div>
    </template>
    <script src="../../vue.js"></script>
    <script>
        const cpn ={
            template:'#temp1',
            props:['aprops','bprops']
        }
        new Vue({
            el:'#app',
            data:{
                adata:'helloprops'
            },
            components: {
                cpn,
            },
        })
    </script>
</body>
</html>